<?php
/**
 * <pre>
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: Rubik Ultimate
 * COPYRIGHT	: 2008
 * ------------------------------------------------------
 * 
 * [GENERAL INFO OF THIS FILE] 
 * 
 * </pre>
 * 
 * Created on	:  Oct 25, 2008
 * 
 */
 
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );
RCoreImporter::cls( "module.AbstractModule" );

class ProfileModule extends AbstractModule {

	function isView() {
		return SysAuthenticate::isLogged();
	}
	
	function display() {
		
		$SYS_ADMIN_URL = SYS_ADMIN_URL;
		$curTplUrl = SYS_CUR_TMPL_URL;
		$userName = SysAuthenticate::getUserName();
		
		$myAccLink = SystemSite::createLink('users', 'myAccount');
		
		$tmpl = $this->loadTemplate ( "profile" );
		eval ( 'echo "' . $tmpl . "\";" );
	}
}
?>